/* 新闻资讯头部 */
.news-header {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url('/images/news/news-bg.jpg');
}

.breadcrumb {
  margin-left: -0.5rem;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Microsoft YaHei';
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb span {
  margin: 0 0.5rem;
}

/* 新闻列表部分 */
.news-list-section {
  max-width: 100rem;
  margin: 0 auto;
  margin-top: 5rem;
  padding: 0 2.5rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 30.625rem);
  gap: 4.0625rem;
  justify-content: center;
  margin-bottom: 3.75rem;
}

.news-item {
  background: #fff;
  position: relative;
  width: 30.625rem;
  text-decoration: none;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.news-item:hover {
  /* transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); */
}

.news-image {
  margin-top: 8.125rem;
  width: 100%;
  height: 25.375rem;
  background: #e6e8ed;
  position: relative;
}

.news-image img {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 23.4375rem;
  height: 31.8125rem;
  margin: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-item:hover .news-image img {
  transform: scale(1.05);
}

.news-content {
  margin-top: 2.5rem;
}

.news-content h3 {
  color: #152c5b;
  font-size: 1.5rem;
  font-family: 'Microsoft YaHei';
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
  margin-bottom: 1.25rem;
}

.news-content p {
  font-family: 'Microsoft YaHei';
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 2rem;
  text-align: left;
  color: #80899c;
  margin-bottom: 1.875rem;
}

.news-footer {
  margin-top: 1.25rem;
}

.read-more {
  text-decoration: none;
  font-family: 'Microsoft YaHei';
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.5rem;
  text-align: left;
  color: #80899c;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  display: inline-block;
}

.news-item:hover .read-more {
  opacity: 1;
  color: #0e78ff;
}

/* 分页样式 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  margin-top: 5rem;
  margin-bottom: 6.25rem;
}

.pagination a {
  min-width: 3.75rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: 'Microsoft YaHei';
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.5rem;
  text-align: left;
  color: #80899c;
}

.pagination .active {
  font-family: 'Microsoft YaHei';
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.5rem;
  text-align: left;
  color: #222132;
  position: relative;
}

.pagination .active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0.5625rem;
  height: 0.1875rem;
  background: #0e78ff;
}

.pagination .prev,
.pagination .next {
  width: 4.375rem;
  height: 4.375rem;
  background: #e6e6e6;
  border-radius: 50%;
}

.pagination .prev {
  margin-right: 1rem;
}

.pagination .next {
  margin-left: 1rem;
}

.pagination .prev i,
.pagination .next i {
  font-size: 0.875rem;
  line-height: 1;
}

.pagination .prev img,
.pagination .next img {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}

.pagination .prev img {
  transform: rotate(180deg);
}

/* 响应式样式 */
@media screen and (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .news-item {
    width: 100%;
  }

  .news-image {
    margin-top: 4rem;
    height: 20rem;
  }

  .news-image img {
    width: 18rem;
    height: 24rem;
  }
}

@media screen and (max-width: 768px) {
  .news-list-section {
    margin-top: 1rem;
    padding: 0 1.5rem;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .news-list-section {
    padding: 0 1.5rem;
  }

  .news-image {
    margin-top: 2rem;
    height: 16rem;
    background: none;
  }

  .news-image img {
    width: 14rem;
    height: 16rem;
  }
  .news-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }
  .news-content {
    margin-top: 1.5rem;
  }
  .news-content p {
    font-size: 1.1rem;
  }
  .read-more {
    font-size: 1rem;
  }

  .pagination {
    flex-wrap: wrap;
    justify-content: center;
  }
  .pagination a {
    display: none;
  }
  .pagination .prev,
  .pagination .next {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    min-width: 2.5rem;
  }
  .pagination .prev img,
  .pagination .next img {
    width: 1rem;
    height: 1rem;
    object-fit: contain;
  }
}
